//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01A
TN_Widget.CreateTable([['Kane County Cougars vs. Sioux Falls Canaries','Northwestern Medicine Field','Geneva, IL','Tuesday','5/14/2024','11:30 AM','6080907','Kane-County-Cougars-vs--Sioux-Falls-Canaries-5-14-2024'],['Kane County Cougars vs. Sioux Falls Canaries','Northwestern Medicine Field','Geneva, IL','Wednesday','5/15/2024','11:30 AM','6080908','Kane-County-Cougars-vs--Sioux-Falls-Canaries-5-15-2024'],['Kane County Cougars vs. Sioux Falls Canaries','Northwestern Medicine Field','Geneva, IL','Thursday','5/16/2024','6:30 PM','6080909','Kane-County-Cougars-vs--Sioux-Falls-Canaries-5-16-2024'],['Kane County Cougars vs. Milwaukee Milkmen','Northwestern Medicine Field','Geneva, IL','Friday','5/17/2024','6:30 PM','6080910','Kane-County-Cougars-vs--Milwaukee-Milkmen-5-17-2024'],['Kane County Cougars vs. Milwaukee Milkmen','Northwestern Medicine Field','Geneva, IL','Saturday','5/18/2024','6:30 PM','6080911','Kane-County-Cougars-vs--Milwaukee-Milkmen-5-18-2024'],['Kane County Cougars vs. Milwaukee Milkmen','Northwestern Medicine Field','Geneva, IL','Sunday','5/19/2024','1:00 PM','6080912','Kane-County-Cougars-vs--Milwaukee-Milkmen-5-19-2024'],['Kane County Cougars vs. Gary SouthShore RailCats','Northwestern Medicine Field','Geneva, IL','Thursday','5/23/2024','6:30 PM','6080913','Kane-County-Cougars-vs--Gary-SouthShore-RailCats-5-23-2024'],['Kane County Cougars vs. Gary SouthShore RailCats','Northwestern Medicine Field','Geneva, IL','Friday','5/24/2024','6:30 PM','6080914','Kane-County-Cougars-vs--Gary-SouthShore-RailCats-5-24-2024'],['Kane County Cougars vs. Gary SouthShore RailCats','Northwestern Medicine Field','Geneva, IL','Saturday','5/25/2024','6:30 PM','6080915','Kane-County-Cougars-vs--Gary-SouthShore-RailCats-5-25-2024'],['Kane County Cougars vs. Gary SouthShore RailCats','Northwestern Medicine Field','Geneva, IL','Sunday','5/26/2024','6:30 PM','6080916','Kane-County-Cougars-vs--Gary-SouthShore-RailCats-5-26-2024'],['Kane County Cougars vs. Chicago Dogs','Northwestern Medicine Field','Geneva, IL','Friday','6/7/2024','6:30 PM','6080917','Kane-County-Cougars-vs--Chicago-Dogs-6-7-2024'],['Kane County Cougars vs. Chicago Dogs','Northwestern Medicine Field','Geneva, IL','Saturday','6/8/2024','6:30 PM','6080918','Kane-County-Cougars-vs--Chicago-Dogs-6-8-2024'],['Kane County Cougars vs. Chicago Dogs','Northwestern Medicine Field','Geneva, IL','Sunday','6/9/2024','1:00 PM','6080919','Kane-County-Cougars-vs--Chicago-Dogs-6-9-2024'],['Kane County Cougars vs. Winnipeg Goldeyes','Northwestern Medicine Field','Geneva, IL','Monday','6/10/2024','6:30 PM','6080920','Kane-County-Cougars-vs--Winnipeg-Goldeyes-6-10-2024'],['Kane County Cougars vs. Winnipeg Goldeyes','Northwestern Medicine Field','Geneva, IL','Tuesday','6/11/2024','6:30 PM','6080921','Kane-County-Cougars-vs--Winnipeg-Goldeyes-6-11-2024'],['Kane County Cougars vs. Winnipeg Goldeyes','Northwestern Medicine Field','Geneva, IL','Wednesday','6/12/2024','11:30 AM','6080922','Kane-County-Cougars-vs--Winnipeg-Goldeyes-6-12-2024'],['Kane County Cougars vs. Kansas City Monarchs','Northwestern Medicine Field','Geneva, IL','Tuesday','6/18/2024','6:30 PM','6080923','Kane-County-Cougars-vs--Kansas-City-Monarchs-6-18-2024'],['Kane County Cougars vs. Kansas City Monarchs','Northwestern Medicine Field','Geneva, IL','Wednesday','6/19/2024','6:30 PM','6080924','Kane-County-Cougars-vs--Kansas-City-Monarchs-6-19-2024'],['Kane County Cougars vs. Kansas City Monarchs','Northwestern Medicine Field','Geneva, IL','Thursday','6/20/2024','6:30 PM','6080925','Kane-County-Cougars-vs--Kansas-City-Monarchs-6-20-2024'],['Kane County Cougars vs. Lake Country DockHounds','Northwestern Medicine Field','Geneva, IL','Friday','6/21/2024','6:30 PM','6080926','Kane-County-Cougars-vs--Lake-Country-DockHounds-6-21-2024'],['Kane County Cougars vs. Lake Country DockHounds','Northwestern Medicine Field','Geneva, IL','Saturday','6/22/2024','6:30 PM','6080927','Kane-County-Cougars-vs--Lake-Country-DockHounds-6-22-2024'],['Kane County Cougars vs. Lake Country DockHounds','Northwestern Medicine Field','Geneva, IL','Sunday','6/23/2024','1:00 PM','6080928','Kane-County-Cougars-vs--Lake-Country-DockHounds-6-23-2024'],['Kane County Cougars vs. Kansas City Monarchs','Northwestern Medicine Field','Geneva, IL','Tuesday','7/2/2024','6:30 PM','6080929','Kane-County-Cougars-vs--Kansas-City-Monarchs-7-2-2024'],['Kane County Cougars vs. Kansas City Monarchs','Northwestern Medicine Field','Geneva, IL','Wednesday','7/3/2024','6:30 PM','6080930','Kane-County-Cougars-vs--Kansas-City-Monarchs-7-3-2024'],['Kane County Cougars vs. Kansas City Monarchs','Northwestern Medicine Field','Geneva, IL','Thursday','7/4/2024','6:30 PM','6080931','Kane-County-Cougars-vs--Kansas-City-Monarchs-7-4-2024'],['Kane County Cougars vs. Cleburne Railroaders','Northwestern Medicine Field','Geneva, IL','Tuesday','7/9/2024','6:30 PM','6080932','Kane-County-Cougars-vs--Cleburne-Railroaders-7-9-2024'],['Kane County Cougars vs. Cleburne Railroaders','Northwestern Medicine Field','Geneva, IL','Wednesday','7/10/2024','11:30 AM','6080933','Kane-County-Cougars-vs--Cleburne-Railroaders-7-10-2024'],['Kane County Cougars vs. Cleburne Railroaders','Northwestern Medicine Field','Geneva, IL','Thursday','7/11/2024','6:30 PM','6080934','Kane-County-Cougars-vs--Cleburne-Railroaders-7-11-2024'],['Kane County Cougars vs. Cleburne Railroaders','Northwestern Medicine Field','Geneva, IL','Friday','7/12/2024','6:30 PM','6080935','Kane-County-Cougars-vs--Cleburne-Railroaders-7-12-2024'],['Kane County Cougars vs. Cleburne Railroaders','Northwestern Medicine Field','Geneva, IL','Saturday','7/13/2024','6:30 PM','6080936','Kane-County-Cougars-vs--Cleburne-Railroaders-7-13-2024'],['Kane County Cougars vs. Cleburne Railroaders','Northwestern Medicine Field','Geneva, IL','Sunday','7/14/2024','1:00 PM','6080937','Kane-County-Cougars-vs--Cleburne-Railroaders-7-14-2024'],['Kane County Cougars vs. Gary SouthShore RailCats','Northwestern Medicine Field','Geneva, IL','Friday','7/19/2024','6:30 PM','6080938','Kane-County-Cougars-vs--Gary-SouthShore-RailCats-7-19-2024'],['Kane County Cougars vs. Gary SouthShore RailCats','Northwestern Medicine Field','Geneva, IL','Saturday','7/20/2024','6:30 PM','6080939','Kane-County-Cougars-vs--Gary-SouthShore-RailCats-7-20-2024'],['Kane County Cougars vs. Gary SouthShore RailCats','Northwestern Medicine Field','Geneva, IL','Sunday','7/21/2024','1:00 PM','6080940','Kane-County-Cougars-vs--Gary-SouthShore-RailCats-7-21-2024'],['Kane County Cougars vs. Chicago Dogs','Northwestern Medicine Field','Geneva, IL','Tuesday','7/30/2024','6:30 PM','6080941','Kane-County-Cougars-vs--Chicago-Dogs-7-30-2024'],['Kane County Cougars vs. Chicago Dogs','Northwestern Medicine Field','Geneva, IL','Wednesday','7/31/2024','6:30 PM','6080942','Kane-County-Cougars-vs--Chicago-Dogs-7-31-2024'],['Kane County Cougars vs. Chicago Dogs','Northwestern Medicine Field','Geneva, IL','Thursday','8/1/2024','6:30 PM','6080943','Kane-County-Cougars-vs--Chicago-Dogs-8-1-2024'],['Kane County Cougars vs. Sioux City Explorers','Northwestern Medicine Field','Geneva, IL','Friday','8/2/2024','6:30 PM','6080944','Kane-County-Cougars-vs--Sioux-City-Explorers-8-2-2024'],['Kane County Cougars vs. Sioux City Explorers','Northwestern Medicine Field','Geneva, IL','Saturday','8/3/2024','6:30 PM','6080945','Kane-County-Cougars-vs--Sioux-City-Explorers-8-3-2024'],['Kane County Cougars vs. Sioux City Explorers','Northwestern Medicine Field','Geneva, IL','Sunday','8/4/2024','1:00 PM','6080946','Kane-County-Cougars-vs--Sioux-City-Explorers-8-4-2024'],['Kane County Cougars vs. Milwaukee Milkmen','Northwestern Medicine Field','Geneva, IL','Tuesday','8/6/2024','6:30 PM','6080947','Kane-County-Cougars-vs--Milwaukee-Milkmen-8-6-2024'],['Kane County Cougars vs. Milwaukee Milkmen','Northwestern Medicine Field','Geneva, IL','Wednesday','8/7/2024','6:30 PM','6080948','Kane-County-Cougars-vs--Milwaukee-Milkmen-8-7-2024'],['Kane County Cougars vs. Milwaukee Milkmen','Northwestern Medicine Field','Geneva, IL','Thursday','8/8/2024','6:30 PM','6080949','Kane-County-Cougars-vs--Milwaukee-Milkmen-8-8-2024'],['Kane County Cougars vs. Lake Country DockHounds','Northwestern Medicine Field','Geneva, IL','Friday','8/16/2024','6:30 PM','6080950','Kane-County-Cougars-vs--Lake-Country-DockHounds-8-16-2024'],['Kane County Cougars vs. Lake Country DockHounds','Northwestern Medicine Field','Geneva, IL','Saturday','8/17/2024','6:30 PM','6080951','Kane-County-Cougars-vs--Lake-Country-DockHounds-8-17-2024'],['Kane County Cougars vs. Lake Country DockHounds','Northwestern Medicine Field','Geneva, IL','Sunday','8/18/2024','1:00 PM','6080952','Kane-County-Cougars-vs--Lake-Country-DockHounds-8-18-2024'],['Kane County Cougars vs. Fargo-Moorhead RedHawks','Northwestern Medicine Field','Geneva, IL','Friday','8/30/2024','6:30 PM','6080953','Kane-County-Cougars-vs--Fargo-Moorhead-RedHawks-8-30-2024'],['Kane County Cougars vs. Fargo-Moorhead RedHawks','Northwestern Medicine Field','Geneva, IL','Saturday','8/31/2024','6:30 PM','6080954','Kane-County-Cougars-vs--Fargo-Moorhead-RedHawks-8-31-2024'],['Kane County Cougars vs. Fargo-Moorhead RedHawks','Northwestern Medicine Field','Geneva, IL','Sunday','9/1/2024','6:00 PM','6080955','Kane-County-Cougars-vs--Fargo-Moorhead-RedHawks-9-1-2024'],['Kane County Cougars vs. Fargo-Moorhead RedHawks','Northwestern Medicine Field','Geneva, IL','Monday','9/2/2024','1:00 PM','6080956','Kane-County-Cougars-vs--Fargo-Moorhead-RedHawks-9-2-2024'],['Tacos and Tequila Festival: T.I, Lil Jon, & Fat Joe','Northwestern Medicine Field','Geneva, IL','Saturday','9/21/2024','1:30 PM','6314649','Tacos-and-Tequila-Festival--T-I--Lil-Jon----Fat-Joe-9-21-2024']],'Fifth Third Bank Ballpark Geneva','http://www.ticketnetwork.com/ticket/Fifth-Third-Bank-Ballpark-Geneva-events.aspx');